package com.sample.navigation.adapter;

public class TypedViewData <T>{
    public final static int TYPE_UNKNOWN = -1;
    public final static int TYPE_SPINNER_TEXT = 0;
    private T t;
    private int dataType;
    private int[] intValue;
    private String[]strValue;
    private boolean[] boolValue;

    public TypedViewData(T t, int dataType, int[] intValue, String[] strValue, boolean[] boolValue){
        this.t = t;
        this.dataType = dataType;
        this.intValue = intValue;
        this.strValue = strValue;
        this.boolValue = boolValue;
    }

    public T getData(){
        return this.t;
    }

    public int getType(){
        return dataType;
    }

    public void setData(T t){
        this.t = t;
    }

    public void setType(int dataType){ this.dataType = dataType; }

    public int[] getIntValue(){
        return intValue;
    }

    public void setIntValue(int[] values){intValue = values;}

    public void setStringValue(String[] strValue) {
        this.strValue = strValue;
    }

    public String[] getStringValue(){
        return strValue;
    }

    public boolean[] getBoolValue() {
        return boolValue;
    }

    public void setBoolValue(boolean[] boolValue) {
        this.boolValue = boolValue;
    }

    public TypedViewData clone(){
        return new TypedViewData(this.getData(), this.getType(), this.getIntValue(), this.getStringValue(), this.getBoolValue());
    }
}